package com.sumika;

import com.spring.ApplicationContext;
import com.sumika.service.OrderService;
import com.sumika.service.UserService;
import com.sumika.service.interfaces.UserServiceInterfaces;

import java.lang.reflect.Field;

/**
 * Hello world!
 *
 */
public class App {
    public static void main( String[] args ) {
        ApplicationContext applicationContext = new ApplicationContext(AppConfig.class);
        try {
            UserServiceInterfaces object = (UserServiceInterfaces)applicationContext.getBean("userService");
            object.sout();
            //OrderService orderService = (OrderService)applicationContext.getBean("orderService");
            //orderService.sout();

        } catch (Exception e) {
            throw new RuntimeException(e);
        }

    }
}
